//
//  LoginSuccessViewController.m
//  BYR
//
//  Created by Bob on 15/3/18.
//  Copyright (c) 2015年 Bob. All rights reserved.
//

#import "LoginSuccessViewController.h"
#import "UIKit+AFNetworking.h"
@interface LoginSuccessViewController ()
@property Users *user;
@end

@implementation LoginSuccessViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.avatarImage.layer.masksToBounds = YES;
    self.avatarImage.layer.cornerRadius = 50.0f;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
-(void)getTheUserData:(Users *)user{
    [self.avatarImage setImageWithURL:user.face_url];
    self.life.text = [NSString stringWithFormat:@"%ld",(long)user.life];
    self.level.text =user.level;
    self.Allcount.text = [NSString stringWithFormat:@"%ld",(long)user.post_count];
    self.jiFen.text = [NSString stringWithFormat:@"%ld",(long)user.score];
}


@end
